package com.dgut.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @TableName salescontracts
 */
@TableName(value = "salescontracts")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Salescontracts implements Serializable {

    public static final Integer UNACT = 1;
    public static final Integer FINISH = 2;
    public static final Integer CANCEL = 3;
    public static final Integer ACTING = 4;

    /**
     * 合同编号
     */
    @TableId(value = "contract_id", type = IdType.AUTO)
    private Long contractId;

    /**
     * 客户编号
     */
    @TableField(value = "cus_id")
    private Long cusId;

    /**
     * 员工编号
     */
    @TableField(value = "emp_id")
    private Long empId;

    /**
     * 合同状态: 1未履行，2已完成，3已取消,4.履行中
     */
    @TableField(value = "contract_status")
    private Integer contractStatus;

    /**
     * 合同签订日期
     */
    @TableField(value = "contract_date")
    private LocalDate contractDate;

    /**
     * 合同结束日期
     */
    @TableField(value = "contract_end_date")
    private LocalDate contractEndDate;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableLogic
    private Integer isDeleted;

    /**
     * 客户名称
     */
    private String cusName;

    /**
     * 员工名称
     */
    private String empName;


}